FROM ghcr.io/graalvm/graalvm-ce:22.3.0

MAINTAINER fly

RUN mkdir -p /fly/xxljob/logs

WORKDIR /fly/xxljob

ENV TZ=PRC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

EXPOSE 9100

ADD ./target/fast-xxl-job-admin.jar ./app.jar

ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
